﻿using Canteen.Core.Models;
using System.Threading.Tasks;

namespace Canteen.Core.Services
{
    public interface IShopOrderService
    {
        /// <summary>
        /// 创建订单
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<bool> CreateShopOrder(ShopOrderSubmitDTO dto);
        Task<dynamic> SelectShopOrderById(int id);
        Task<bool> DeleteShopOrder(int id);

        Task<dynamic> GetPageList(ShopOrderPageParameters parameters);

        Task<HomeEchartDTO> GetHomeEchart(int UserId);
    }
}
